/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2013-2014 sagyf Yang. The Four Group.
 */

package com.jfinal.sog.render.datatables;

/**
 * <p>
 * .
 * </p>
 *
 * @author sagyf yang
 * @version 1.0 2014-01-15 14:56
 * @since JDK 1.6
 */
public class DTConstants {

    public static final String DT_DOM = "sDom";
    public static final String DT_AUTO_WIDTH = "bAutoWidth";
    public static final String DT_DEFER_RENDER = "bDeferRender";
    public static final String DT_FILTER = "bFilter";
    public static final String DT_INFO = "bInfo";
    public static final String DT_SORT = "bSort";
    public static final String DT_PAGINATE = "bPaginate";
    public static final String DT_LENGTH_CHANGE = "bLengthChange";
    public static final String DT_STATE_SAVE = "bStateSave";
    public static final String DT_S_DEFAULT_CONTENT = "sDefaultContent";
    public static final String DT_S_TYPE = "sType";
    public static final String DT_A_LENGTH_MENU = "aLengthMenu";
    public static final String DT_AS_STRIPE_CLASSES = "asStripeClasses";
    public static final String DT_S_CLASS = "sClass";

    // AJAX related constants
    public static final String DT_B_DEFER_RENDER = "bDeferRender";
    public static final String DT_B_PROCESSING = "bProcessing";
    public static final String DT_B_SERVER_SIDE = "bServerSide";
    public static final String DT_S_AJAX_SOURCE = "sAjaxSource";
    public static final String DT_FN_SERVERDATA = "fnServerData";
    public static final String DT_S_SERVERMETHOD = "sServerMethod";
    public static final String DT_FN_SERVERPARAMS = "fnServerParams";
    public static final String DT_S_AJAXDATAPROP = "sAjaxDataProp";

    // AJAX URL parameters
    public static final String DT_S_ECHO = "sEcho";
    public static final String DT_I_COLUMNS = "iColumns";
    public static final String DT_S_COLUMNS = "sColumns";
    public static final String DT_I_DISPLAY_START = "iDisplayStart";
    public static final String DT_I_DISPLAY_LENGTH = "iDisplayLength";
    public static final String DT_M_DATA_PROP= "mDataProp_";
    public static final String DT_S_SEARCH= "sSearch";
    public static final String DT_S_COLUMN_SEARCH= "sSearch_";
    public static final String DT_B_REGEX= "bRegex";
    public static final String DT_B_SEARCHABLE= "bSearchable_";
    public static final String DT_B_SORTABLE= "bSortable_";
    public static final String DT_I_SORT_COL= "iSortCol_";
    public static final String DT_S_SORT_DIR= "sSortDir_";
    public static final String DT_I_SORTING_COLS = "iSortingCols";
    public static final String DT_B_REGEX_COL = "bRegex_";

    // Advanced configuration
    public static final String DT_PAGINATION_TYPE = "sPaginationType";
    public static final String DT_DS_DATA = "aaData";
    public static final String DT_AOCOLUMNS = "aoColumns";
    public static final String DT_LANGUAGE = "oLanguage";
    public static final String DT_URL = "sUrl";
    public static final String DT_JQUERYUI = "bJQueryUI";

    // Extra features
    public static final String DT_SCROLLY = "sScrollY";
    public static final String DT_SCROLLX = "sScrollX";
    public static final String DT_SCROLLXINNER = "sScrollXInner";
    public static final String DT_SCROLLCOLLAPSE = "bScrollCollapse";
    public static final String DT_OFFSETTOP = "offsetTop";
    public static final String DT_FILTER_TYPE = "type";
    public static final String DT_FILTER_VALUES = "values";
    public static final String DT_S_PLACEHOLDER = "sPlaceHolder";
    public static final String DT_S_SELECTOR = "sSelector";

    // Column configuration
    public static final String DT_SORTABLE = "bSortable";
    public static final String DT_SEARCHABLE = "bSearchable";
    public static final String DT_VISIBLE = "bVisible";
    public static final String DT_SORT_INIT = "aaSorting";
    public static final String DT_SORT_DIR = "asSorting";
    public static final String DT_DATA = "mData";
    public static final String DT_COLUMN_RENDERER = "mRender";

    // Callbacks
    public static final String DT_FN_COOKIE_CBK = "fnCookieCallback";
    public static final String DT_FN_CREATED_ROW = "fnCreatedRow";
    public static final String DT_FN_DRAW_CBK = "fnDrawCallback";
    public static final String DT_FN_FOOTER_CBK = "fnFooterCallback";
    public static final String DT_FN_FORMAT_NUMBER = "fnFormatNumber";
    public static final String DT_FN_HEADER_CBK = "fnHeaderCallback";
    public static final String DT_FN_INFO_CBK = "fnInfoCallback";
    public static final String DT_FN_INIT_COMPLETE = "fnInitComplete";
    public static final String DT_FN_PRE_DRAW_CBK = "fnPreDrawCallback";
    public static final String DT_FN_ROW_CBK = "fnRowCallback";
}
